<template>
  <view class="container">
    <!-- 使用自定义导航栏 -->
    <navigation-bar
      title="修改密码"
	  :item=JSON.stringify(form)
      @click-left="handleClickLeft"
      right-text="确定"
      @click-right="handleClickRight"
    />
    <!-- 页面内容 -->
    <view class="content">
		<view style="height: 2vh;"></view>
			<u--input placeholder="请输入新密码" type="password" v-model="form.newPassword" clearable maxlength="18" minlength="6" border="bottom"></u--input>
    </view>
  </view>
</template>

<script>
import NavigationBar from '@/components/UpPassword2.vue'; // 请根据你的实际路径进行调整

export default {
  components: {
    NavigationBar,
  },
  data(){
	return {
		item:{},
		form:{},
		errMsg:false,
		passwordButton:false,
		newPassword:'',
		oldPassword:''
	}
  },
  onLoad(option) {
		let a=JSON.parse(option.item)
		this.form.id=a.id
  },
  methods: {
    handleClickLeft() {
      uni.navigateBack();
    },
    handleClickRight() {
      console.log('点击了右侧按钮');
      // ...处理逻辑...
    },
  },
};
</script>
<style>
	.container{
		width: 100%;
	}
</style>